package com.pack.service;


import java.util.List;


import javax.transaction.Transactional;

import org.springframework.stereotype.Service;
import com.pack.BaseUtil.CrudService;
import com.pack.bean.User;
import com.pack.dao.UserDao;

@Service
@Transactional
public class UserService extends CrudService<UserDao,User> {

	/**
	 * 获取用户权限
	 * @param name
	 * @return
	 */
	public List<User> findPermissionList(User name){
		return dao.findPermissionList(name);
	}

	/**
	 * 获取用户角色
	 * @param name
	 * @return
	 */
	public List<User> findRoleList(User name){
		return dao.findRoleList(name);
	}
}
